package com.bawei.module_mine.tengxun.mvi.model.api

import com.bawei.lib_net.entity.ResponseEntity
import com.bawei.module_mine.tengxun.mvi.model.entity.CreateLiveRoomEntity
import com.bawei.module_mine.tengxun.mvi.model.entity.LiveRoomEntity
import com.bawei.module_mine.tengxun.mvi.model.entity.SendRedPacketEntity
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface LiveApi {
    @POST("/liveRoomAnchor/createLiveRoom")
    suspend fun createLiveRoom(@Body createLiveRoom:CreateLiveRoomEntity):ResponseEntity<LiveRoomEntity>

    @POST("/liveRoomAnchor/deleteLiveRoom")
    suspend fun deleteLiveRoom(@Query("roomId") roomId:String):ResponseEntity<LiveRoomEntity>

    @POST("/liveRoomAnchor/sendRedPacket")
    suspend fun postRedPacket(@Body sendRedPacket:SendRedPacketEntity):ResponseEntity<Boolean>
}